package com.zyq.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: zyq
 * @create: 2022-03-04
 **/
public interface SignInMapper {

    /**
     * 插入
     */
    public int insertSignIn(@Param("userId") Long userId, @Param("topicId") Long topicId);

    /**
     * 根据用户查找签到时间
     */
    public List<Date> getTimes(Long userId);

    int countSignIn(@Param("userId") Long userId, @Param("topicId") Long topicId);
}
